package com.linq.cool.beauty.task;

import com.linq.cool.beauty.service.BeautyOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author: yqlin
 * @Date: 2021/2/16 00:43
 * @Description: 订单定时任务
 * @Version: 1.0.0
 */
@Component
public class BeautyOrderTask {
    @Autowired
    private BeautyOrderService orderService;

    @Scheduled(cron = "0 0 23 * * ?")
    public void autoFinishMemberOrder() {
        orderService.autoConfirmMemberOrderFinish();
    }
}
